{% extends "IMTUserBundle::layout-connexion.html.twig" %}

{% block content %}
<form class="form-horizontal" action="{{ path("fos_user_security_check") }}" method="post" style="margin:0;">
  <div class="modal-header">
    <h3>Connexion</h3>
  </div>
  <div class="modal-body">
  	{% if error %}
		<div class="alert alert-error">
	      <strong>Erreur :</strong> {{ error|trans({}, 'FOSUserBundle') }}
	    </div>
	{% endif %}
		<div class="control-group">
			<label class="control-label" for="username">Identifiant</label>
			<div class="controls">
				<input type="text" id="username" name="_username" value="{{ last_username }}">
			</div>
		</div>
		<div class="control-group">
			<label class="control-label" for="password">Mot de passe</label>
			<div class="controls">
				<input type="password" id="password" name="_password">
				<p class="help-block">Pas encore de compte ? <a href="{{ path('fos_user_registration_register') }}">inscrivez vous ici</a></p>
{# 				<p class="help-block"><a href="{{ path('fos_user_resetting_request') }}">Mot de passe oubli&eacute; ?</a></p>#}
			</div>
		</div>
  </div>
  <div class="modal-footer">
    <input class="btn btn-primary" type="submit" name="_submit" value="Se connecter">
  </div>
</form>	
{% endblock content %}